//
//  XMMemberBottomView.m
//  XunMi
//
//  Created by MacBook on 2024/3/28.
//  Copyright © 2024 TieZhu. All rights reserved.
//

#import "XMMemberBottomView.h"

@interface XMMemberBottomView ()
@property (weak, nonatomic) IBOutlet UIButton *buyButton;
@property (weak, nonatomic) IBOutlet UILabel *priceLa;
@property (weak, nonatomic) IBOutlet UILabel *discountLa;
@property (weak, nonatomic) IBOutlet UIButton *agreeButton;

@end

@implementation XMMemberBottomView

- (void)awakeFromNib {
    [super awakeFromNib];
    
    [_buyButton.layer addSublayer:[UIColor getGraduallyChangingColor:@[(__bridge id)[UIColor colorWithHexString:@"#FEC2AA"].CGColor,(__bridge id)[UIColor colorWithHexString:@"#F8344F"].CGColor] locations:@[@0.f, @1.f] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(0, 1) frame:kFRAME(0, 0, 104, 40)]];
//    xm_addTextCenterLineWithLineColor
    
    kCornerRadius(_buyButton, 20, 0, UIColor.clearColor);
    [self.agreeButton setImagePosition:(XMImagePositionLeft) spacing:6];
    
    self.discountLa.attributedText = [@"¥99*".mutableCopy xm_addTextCenterLineWithLineColor:kHEX(@"959595")];
}

- (IBAction)buyAction:(UIButton *)sender {
}

- (IBAction)agreeAction:(UIButton *)sender {
    sender.selected = !sender.selected;
}

- (IBAction)rechargeAct:(UIButton *)sender {
}

- (IBAction)memberAct:(UIButton *)sender {
}


@end
